<?php
$menu_link=$_SERVER['PHP_SELF'];
function menu_fen($menuinfo,$menu_link){
foreach ($menuinfo as $menuinfos){
$menuinfos=explode("@!@",$menuinfos);
$menuinfos_a=$menuinfos[0];
$menuinfos_b=$menuinfos[1];
if ($menu_link==$menuinfos[0]){
print <<<EOT
<li><a href="$menuinfos_a" class="menu-on">$menuinfos_b</a></li>
EOT;
}else{
print <<<EOT
<li><a href="$menuinfos_a">$menuinfos_b</a></li>
EOT;
}
}
}
$menucenter[0]='/user/index.php@!@挂Q列表';
$menuinfo[0]='/user/info.php@!@账号信息';
$menuinfo[1]='/user/spread.php@!@推广中心';
$menuinfo[2]='/user/tip.php@!@会员中心';
$menuinfo[3]='/user/racetime.php@!@争分夺秒';
$menuinfo[4]='/top.php@!@风云榜';

print <<<EOT
					<div id="user-content-left-menu">
						<h2>挂Q中心</h2>
						<ul>
EOT;

menu_fen($menucenter,$menu_link);

print <<<EOT
						</ul>
						<h2>个人中心</h2>
						<ul>
EOT;

menu_fen($menuinfo,$menu_link);

print <<<EOT
						</ul>
					</div>
EOT;
?>